class CulturalHeritage::CollectionPhoto < ActiveRecord::Base
  has_attached_file :photo
  
  #belongs_to :obj_collection, :class_name => 'CulturalHeritage::Collection',  :foreign_key => 'collection'
  #mount_uploader :photo, PhotoUploader

  validates :photo_file_name, :presence => {:message => "La foto es requerida"}
  default_scope where("deleted = 0")
end
